<?php

namespace app\common\validate;


class UserAuth extends BaseValidate
{
    /**
     * 验证规则
     *
     *     *
     * @var array
     */
    protected $rule = [
        'realname' => 'require',
        'sfznum' => 'require|length:17,18'
    ];

    /**
     * 验证消息
     *
     *     *
     * @var array
     */
    protected $message = [
        'realname.require' => '姓名不能为空',
        'sfznum.require' => '身份证号码不能为空',
        'sfznum.length' => '身份证号码位数不正确',
    ];
}